// vuex文件
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const actions = {

} 
const mutations = {
    // 存储登录用户信息
    ADD_USER(state,value){
        // console.log(value);
        state.user = value
    },
    // ADD_HESUAN(state,value){
    //     console.log(state.value);
    //     state.hesuan = value
    // }
} 
const state = {
    user:{},//存储数据
    // hesuan:{}

} 
export default new Vuex.Store({
    actions,
    mutations,
    state
})